import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/homecontent.vue'
import Aboutus from '@/components/aboutuscontent'
import Service from '@/components/servicecontent'
import Newcenter from '@/components/newscentercontent'
import joinUs from '@/components/joinUscontent'
import NewsDetail from '@/components/newsDetail'

Vue.use(Router)

const router = new Router({
  routes: [
    {path: '/', component: Home, name:'home'},
    {path: '/aboutus', component: Aboutus, name: 'about'},
    {path: '/service', component: Service, name: 'service'},
    {path: '/newcenter', component: Newcenter, name: 'newcenter'},
    {path: '/joinus', component: joinUs, name: 'joinUs'},
    {path: '/newsDetail', component: NewsDetail, name: 'newsDetail'}
  ],
  mode: ''
})

export default router;
